package o2o.system;

import o2o.cache.system.SysConfigPathMemory;
import o2o.system.data.SYS_CONFIG_PATH;

//系统配置
public class SysConfigPath {

    //初始化系统配置
    public static void init() {
        SysConfigPathMemory.getInstance().load2Memory();

        SYS_CONFIG_PATH.PROJECT_BASE_URL = SysConfigPathMemory.getInstance().getPathByCode("PROJECT_BASE_URL");//项目URL路径
        SYS_CONFIG_PATH.ANOTHER_IMAGE_SERVER_URL = SysConfigPathMemory.getInstance().getPathByCode("ANOTHER_IMAGE_SERVER_URL");// 图片真实存储服务接口地址

        //图片相关
        SYS_CONFIG_PATH.IMAGE_BASE_URL = SysConfigPathMemory.getInstance().getPathByCode("IMAGE_BASE_URL");//显示图片URL前缀
        SYS_CONFIG_PATH.IMAGE_BASE_FILE = SysConfigPathMemory.getInstance().getPathByCode("IMAGE_BASE_FILE");//存图片路径
        SYS_CONFIG_PATH.USER_IMAGE = SysConfigPathMemory.getInstance().getPathByCode("USER_IMAGE");//用户图片
        SYS_CONFIG_PATH.ADVERT_IMAGE = SysConfigPathMemory.getInstance().getPathByCode("ADVERT_IMAGE");//广告图片
        SYS_CONFIG_PATH.SHOP_IMAGE = SysConfigPathMemory.getInstance().getPathByCode("SHOP_IMAGE");//店铺图片
        SYS_CONFIG_PATH.GOODS_IMAGE = SysConfigPathMemory.getInstance().getPathByCode("GOODS_IMAGE");//店铺图片
        SYS_CONFIG_PATH.ORDER_IMAGE = SysConfigPathMemory.getInstance().getPathByCode("ORDER_IMAGE");//订单图片
        SYS_CONFIG_PATH.NOTICE_IMAGE = SysConfigPathMemory.getInstance().getPathByCode("NOTICE_IMAGE");//消息图片路径
        SYS_CONFIG_PATH.FENXIAO_TEMPLATE_IMAGE = SysConfigPathMemory.getInstance().getPathByCode("FENXIAO_TEMPLATE_IMAGE");//分销模板图片路径
        SYS_CONFIG_PATH.POST_COMPANY_PROTOCOL_IMAGE = SysConfigPathMemory.getInstance().getPathByCode("POST_COMPANY_PROTOCOL_IMAGE");//配送公司图片协议

        SYS_CONFIG_PATH.WALLET_POP = SysConfigPathMemory.getInstance().getPathByCode("WALLET_POP");//提现申请导出Excel路径

        SYS_CONFIG_PATH.VOUCHER_IMAGE = SysConfigPathMemory.getInstance().getPathByCode("VOUCHER_IMAGE");// 支付凭证

        SYS_CONFIG_PATH.USER_SIGN = SysConfigPathMemory.getInstance().getPathByCode("USER_SIGN");   // 用户签到上传图片路径


        //分销
        SYS_CONFIG_PATH.FEN_XIAO_SERVICE_URL = SysConfigPathMemory.getInstance().getPathByCode("FEN_XIAO_SERVICE_URL");//分销接口路径
        SYS_CONFIG_PATH.FEN_XIAO_SERVICE_KEY = SysConfigPathMemory.getInstance().getPathByCode("FEN_XIAO_SERVICE_KEY");//分销接口参数值
        SYS_CONFIG_PATH.FEN_XIAO_TEMPLATE_FILE_PATH = SysConfigPathMemory.getInstance().getPathByCode("FEN_XIAO_TEMPLATE_FILE_PATH");//分销 二维码模板图片路径
        SYS_CONFIG_PATH.FEN_XIAO_REGISTER_URL = SysConfigPathMemory.getInstance().getPathByCode("FEN_XIAO_REGISTER_URL");//分销 分享出去的注册页面url
        SYS_CONFIG_PATH.PAOTUI_BATCH_ORDER_TEMPLATE = SysConfigPathMemory.getInstance().getPathByCode("PAOTUI_BATCH_ORDER_TEMPLATE");// 跑腿批量导入订单

        // 保险相关
        SYS_CONFIG_PATH.BAO_XIAN_SERVICE_URL = SysConfigPathMemory.getInstance().getPathByCode("BAO_XIAN_SERVICE_URL");     // 保险相关

        // 积分
        SYS_CONFIG_PATH.INTEGRAL_SERVICE_URL = SysConfigPathMemory.getInstance().getPathByCode("INTEGRAL_SERVICE_URL");// 积分远程地址

        // 红包路径
        SYS_CONFIG_PATH.RED_PACKET_SERVICE_URL = SysConfigPathMemory.getInstance().getPathByCode("RED_PACKET_SERVICE_URL");// 红包远程地址

        SYS_CONFIG_PATH.SYS_CUSTOMER = SysConfigPathMemory.getInstance().getPathByCode("SYS_CUSTOMER");// 获取客户标识

        //分享商品图片路径
        SYS_CONFIG_PATH.SHARE_GOODS_TEMPLATE_FILE_PATH = SysConfigPathMemory.getInstance().getPathByCode("SHARE_GOODS_TEMPLATE_FILE_PATH");// 获取客户标识

        // 一乙接口地址
//        SYS_CONFIG_PATH.YIYI_URL = SysConfigPathMemory.getInstance().getPathByCode("YIYI_URL");
//        SYS_CONFIG_PATH.YIYI_APP_ID = SysConfigPathMemory.getInstance().getPathByCode("YIYI_APP_ID");
//        SYS_CONFIG_PATH.YIYI_APP_SECRET = SysConfigPathMemory.getInstance().getPathByCode("YIYI_APP_SECRET");

        // 微信退款证书路径
        SYS_CONFIG_PATH.WX_CERT_URL = SysConfigPathMemory.getInstance().getPathByCode("WX_CERT");     // 微信退款证书路径
    }
}
